package com.zmn.oms.common.dto;


import com.zmn.common.constant.GateTypeConsts;
import com.zmn.common.constant.GlobalConsts;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 类描述：oms操作
 *
 * @author liuying
 * @date 2021-03-31
 */
@Data
@ToString
@ApiModel("操作信息")
public abstract class OrderWorkAddOperator implements Serializable {

    /**
     * 客户端IP
     */
    @ApiModelProperty(value = "厂商ID")
    private String operatorIP;

    /**
     * 操作者类型
     *
     * @see GlobalConsts#OPERATE_USER_TYPE_SYSTEM
     */
    @ApiModelProperty(value = "操作者类型")
    private Integer operatorType;

    /**
     * 操作者ID
     */
    @ApiModelProperty(value = "操作者ID")
    private Long operatorId;

    /**
     * 操作者
     */
    @ApiModelProperty(value = "操作者")
    private String operator;

    /**
     * 操作备注
     */
    @ApiModelProperty(value = "操作备注")
    private String operatorRemark;

    /**
     * 是否自动，默认false
     */
    @ApiModelProperty(value = "是否自动，默认false")
    private boolean isAuto = false;

    /**
     * 是否有越级权限
     */
    @ApiModelProperty(value = "是否有越级权限")
    private boolean isSuper = false;

    /**
     * 用于鉴权的Token
     */
    @ApiModelProperty(value = "用于鉴权的Token")
    private String token;

    /**
     * 签名
     */
    @ApiModelProperty(value = "签名")
    private String sign;

    /**
     * 来源类型
     */
    @ApiModelProperty(value = "来源类型")
    private int fromType;

    /**
     * 浏览器，操作系统
     */
    @ApiModelProperty(value = "userAgent")
    private String userAgent;

}
